package com.example.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("`employee`")
public class User {//用户
    //员工工号
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //身份证号
    private String idCard;
    //员工姓名
    private String name;


    //图片
    private String imgUrl;


    //所属部门
    private Integer departmentId;
    //职位
    private Integer positionId;
    //密码
    private String password;
    //性别
    private String sex;
    //工资
    private Double wage;
    //邮箱
    private String email;
    //电话
    private Long phone;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;
    //创建人
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;
    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    //银行卡号
    private String bankCard;






    //是否迟到 0否 1是
    private Integer press;
    //职责id [新增]
    private Integer dutyId;
    //职责名称 [新增]
    @TableField(exist = false)
    private String dutyName;
    //总数量 [新增]
    @TableField(exist = false)
    private Integer total;
    //所属职业的名称 [新增] ---> 优化Excel作用
//    private String positionName;
    @TableField(exist = false)
    private String departmentName;
    //统计
    @TableField(exist = false)
    private Integer count;
}
